package com.tc.infinitechat.authenticationservice.exception;

import com.tc.infinitechat.authenticationservice.exception.common.BaseExceptionInterface;
import lombok.Getter;

/**
 * @ClassName BusinessException
 * @Author 大马鲛鱼丸Gaga
 * @Description 自定义业务异常
 * @Date 2025/10/8 15:24
 */
@Getter
public class BusinessException extends RuntimeException{
    private final String code;
    private final String message;


    public BusinessException(BaseExceptionInterface baseExceptionInterface) {
        this.code = baseExceptionInterface.getCode();
        this.message = baseExceptionInterface.getMessage();
    }
}
